prereq-build: add Python 3.12 support
authorPaul Spooren <[email protected]>
Sat, 17 Aug 2024 14:23:54 +0000 (16:23 +0200)
committerHauke Mehrtens <[email protected]>
Thu, 24 Jul 2025 20:00:58 +0000 (22:00 +0200)
This reverts commit 09b7e1955c92e0b05197174b7bd4aef2c4073a35.

Signed-off-by: Paul Spooren <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/16699
Signed-off-by: Robert Marko <[email protected]>
(cherry picked from commit bf059f7108e75fdec618a272ab8c52d4780aafed)
Signed-off-by: Andreas Gnau <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/19513
Signed-off-by: Hauke Mehrtens <[email protected]>
include/prereq-build.mk

index 52988fbda927170510bfbe5a060227f9be85c4f6..c5df77e0b45c54a40b21b885da209353fc9c553e 100644 (file)
@@ -176,6 +176,7 @@ $(eval $(call SetupHostCommand,perl,Please install Perl 5.x, \
        perl --version | grep "perl.*v5"))
 
 $(eval $(call SetupHostCommand,python,Please install Python >= 3.6, \
+       python3.12 -V 2>&1 | grep 'Python 3', \
        python3.11 -V 2>&1 | grep 'Python 3', \
        python3.10 -V 2>&1 | grep 'Python 3', \
        python3.9 -V 2>&1 | grep 'Python 3', \
@@ -185,6 +186,7 @@ $(eval $(call SetupHostCommand,python,Please install Python >= 3.6, \
        python3 -V 2>&1 | grep -E 'Python 3\.([6-9]|[0-9][0-9])\.?'))
 
 $(eval $(call SetupHostCommand,python3,Please install Python >= 3.6, \
+       python3.12 -V 2>&1 | grep 'Python 3', \
        python3.11 -V 2>&1 | grep 'Python 3', \
        python3.10 -V 2>&1 | grep 'Python 3', \
        python3.9 -V 2>&1 | grep 'Python 3', \